import http from './core'

const request = {
    Login(data){
        return http({
            method:'post',
            url:'api/login',
            data
        })
    },
    createProblem(data){
        return http({
            method:'post',
            url:'api/createProblem',
            data
        })
    },
    getProblem(data){
        return http({
            method:'get',
            url:'api/getProblem',
            data
        })
    },
    deleteProblem(data){
        return http({
            method:'delete',
            url:'api/deleteProblem',
            data
        })
    },
    editProblem(data){
        return http({
            method:'post',
            url:'api/updateProblem',
            data
        })
    }
}

export default request